package lzk.myshop.service;

import lzk.myshop.Util.GoodsAdd;
import lzk.myshop.pojo.Users;

import java.util.Map;

public interface UsersService {
    Map<String,Object> signin(String account, String password);
    Map<String,Object> addUser(Users users);
    Map<String,Object> allGoods();
    Map<String,Object> searchGoods(String name);
    Map<String,Object> addCart(int cartid,int goodsID,int count);
    Map<String,Object> alterPhone(String newPhone,int userid);
    Map<String,Object> alterEmail(String newPhone,int userid);
    Map<String,Object> alterAddress(String newPhone,int userid);
    Map<String,Object> getAllOrder(int userid);
    Map<String,Object> newOrder(GoodsAdd goodsAdds);
    Map<String,Object> deleteOrder(int id);
    Map<String,Object> getGoods(int id);
    Map<String,Object> deleteUser(int userid);
    Map<String, Object> newOrderByCartId(int cartid);
    Map<String,Object> getCart(int cartid);
    Map<String,Object> deleteCart(int cartDetailid);
}
